<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>test</title>
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">

</head>
<body style="padding:20px;">
	
	
	<script type="text/javascript" src="../dist/js/lib/zepto.js"></script>
	<script type="text/javascript" src="../dist/js/lib/zepto.touch.js"></script>
	<script type="text/javascript">
		$(function () {

			var img = document.createElement('img');
			img.src = 'http://avatar.csdn.net/1/0/B/1_kongjiea.jpg';
			img.onload = function () {
				alert(1);
			};
			img.onerror = function () {
				alert(2);
			};

		});
	</script>

</body>
</html>